package event

import (
    "collecter/app/common/enum"
    "collecter/app/event/interfaces"
    "collecter/app/event/listener"
)

/* 事件监听者注册 */

type eiType []interfaces.EventInterfacer

// elrType 事件监听者注册类型（event listener register）
type elrType map[string]eiType

var eventConfigs elrType = elrType{
	// 事件测试
	enum.EVENT_TEST: eiType{
		listener.EventExample{},
		// others instance ...
	},
    enum.EVENT_USER_REGISTER: eiType{
        listener.UserLogout{},
    },
    enum.EVENT_CREATE_COLLECT: eiType{
        listener.CreateCollect{},
    },
    enum.EVENT_UPDATE_COLLECT: eiType{
        listener.UpdateCollect{},
    },
    enum.EVENT_USER_LOGOUT: eiType{
        listener.UserLogout{},
    },
}
